package com.mall.util;

public class PersonName extends Name {
private String firstname="";
private String lastname="";
private String middlename="";

public PersonName(String firstname, String lastname, String middlename){
super(firstname + " " + " " + lastname+ " " + middlename);
	this.firstname = firstname;
	this.lastname = lastname;
	this.middlename= middlename;
	
}

public String getFirstname() {
	return firstname;
}

public void setFirstname(String firstname) {
	this.firstname = firstname;
}

public String getLastname() {
	return lastname;
}

public void setLastname(String lastname) {
	this.lastname = lastname;
}

public String getMiddlename() {
	return middlename;
}

public void setMiddlename(String middlename) {
	this.middlename = middlename;
}

@Override
public int compareTo(Name o) {
	// TODO Auto-generated method stub
	return 0;
}

}
